<link rel="stylesheet" type="text/css" href="../core/resource/css/coupon.css">
<div class='fui-page  fui-page-current coupon-my-page'>
  <div class="fui-header">
    <div class="fui-header-left">
      <a class="back" ng-click="goback()" ></a>
    </div>
    <div class="title">领取优惠券</div>
    <div class="fui-header-right">&nbsp;</div></div>
  <div class='fui-content'>
    <div class="coupon-container coupon-list" ng-repeat="item in pagedata.coupons">
      <a href="javascript:;" ng-click="access_json('jy_weishop/coupon.detail//id='+item.coupon.id)" class="coupon-item  {{item.coupon.color}}">
        <div class="coupon-dots">
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
          <i>
          </i>
        </div>
        <div class="coupon-type">{{item.coupon.tagtitle}}</div>
        <div class="coupon-left">
          <div class="title">{{item.coupon.title3}}</div>
          <div class="subtitle">{{item.coupon.title2}}</div></div>
        <div class="coupon-right">
          <div class="title">{{item.coupon.title}}</div>
          <div class="subtitle">{{item.coupon.title5}}</div>
          <div ng-if="item.coupon.merchid!=0" class="subtitle">限购[{{item.coupon.merchname}}]店铺商品</div>
          <div class="usetime">
            <div class="text">
              <div ng-if="item.coupon.timelimittype==0">有效期: 永久有效</div>
              <div ng-if="item.coupon.past==1">有效期: 已过期</div>
              <div ng-if="item.coupon.past==0 && item.coupon.timelimittype!=0">有效期: {{item.time}}</div></div>
          </div>
        </div>
      </a>
    </div>
	<a class="btn btn-default-o external" style="margin:1rem;display: block;" href="javascript:;" ng-click="access_json('jy_weishop/coupon.index/main')">
      <i class="icon icon-gifts"></i>赶紧去领券中心看看更多优惠券~
	</a>
  </div>
  <div class="fui-navbar">
	<div class="nav-item btn btn-red" ng-click="post(pagedata.post,'post')">全部领取</div>
</div>
</div>